﻿<baseview:BaseHostView x:Class="CharacterCreation.Views.SpecialsHostView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:baseview="clr-namespace:CharacterCreation.Views.Contracts" 
    xmlns:views="clr-namespace:CharacterCreation.Views"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">
    
    <Grid x:Name="LayoutRoot">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="1*" />
            <ColumnDefinition Width="3*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition />
        </Grid.RowDefinitions>

        <Border Grid.Column="0" Grid.Row="0" Background="AliceBlue" Margin="2">
            <TextBlock Text="Specials" FontFamily="Georgia" FontSize="18" Foreground="{StaticResource backgroundBrush}" Margin="20,10,20,10" />
        </Border>
        <views:SpecialsListView Grid.Column="0" Grid.Row="1" />

        <Border Grid.Column="1" Grid.Row="0" Background="AliceBlue" Margin="2" Visibility="{Binding Special, Converter={StaticResource visibilityConverter}}">
            <TextBlock Text="{Binding Special.Name}" FontFamily="Georgia" FontSize="18" Foreground="{StaticResource backgroundBrush}" Margin="20,10,20,10" />
        </Border>
        <views:SpecialsDetailsView Grid.Column="1" Grid.Row="1" Visibility="{Binding Special, Converter={StaticResource visibilityConverter}}"  />

        <Border Grid.Column="1" Grid.Row="0" Grid.RowSpan="2" Margin="2"
                Visibility="{Binding Special, Converter={StaticResource visibilityConverter}, ConverterParameter=inverse}">
            <Border.Background>
                <SolidColorBrush Color="AntiqueWhite" Opacity="0.3" />
            </Border.Background>
            <TextBlock Text="Please select a special." HorizontalAlignment="Center" VerticalAlignment="Center" 
                       FontFamily="Georgia" FontSize="26" Foreground="AliceBlue" />
        </Border>
    </Grid>
</baseview:BaseHostView>
